<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var reg = /\.|:/;
    var s = 'asdfas.asdfasd.asdfasd.asdf:dasfas:asdfasd';
    var arr = s.split(reg)
    console.log(arr);
</script>
</body>
</html>